import * as api from '@src/networking/Api';

//模版管理列表
export const requestTaskList = (data) => {
    return async function() {
        const model = await api.getTaskList(data)
        return model;
    }
}

//获取相关任务信息
export const requestTaskInfo = (data) => {
    return api.getTaskInfo(data);
}

//撤销流程
export const requestTurnDownCancel = (data) => {
    return api.turnDownCancel(data);
}

//提交任务
export const requestWorkFlowComplete = (data) => {
    return api.workFlowComplete(data);
}

//驳回到发起人
export const requestTurnDownSponsor = (data) => {
    return api.turnDownSponsor(data);
}

//驳回到上一步
export const requestTurnDownPrevious = (data) => {
    return api.turnDownPrevious(data);
}

//选择流转
export const requestCirculation = (data) => {
    return api.getCirculation(data);
}

//自由流转
export const requestFreeCirculation = (data) => {
    return api.getFreeCirculation(data);
}